<?php

/**
 * Vocabulary Controller
 * 
 * This class will control all actions related to Vocabulary manipulation.
 * 
 * Copyright 2011, ChinesePod 
 * 
 * @author Phillip Olexa
 *
 */
class Vocabulary  extends CI_Controller {
    public function getVocabularys(){
        $data=array();
        $this->load->view('Vocabularys',$data);
    }
    public function index(){
        $lessonId= $_REQUEST['lesson_id']?$_REQUEST['lesson_id']:246;
        $this->load->model('Vocabulary_model');
        $data=$this->Vocabulary_model->getVocabularies($lessonId);
        $this->load->view('vocabulary/index',array('vocabularies'=>$data));
    }
    public function listAllVocabularys(){
        $data=array();
        $this->load->view('list_all_Vocabularys');
    }
    
    public function getVocabulary(){
        $data=array();
        $this->load->view('Vocabulary');
    }
    
    public function saveVocabulary(){
        $data=array();
        redirect('/lesson/index/', 'refresh');

    }
    
    public function removeVocabulary(){
        $data=array();
        redirect('/lesson/index/', 'refresh');
    }
}

